package cn.zebra.dev.product.module.attribute.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 规格属性表(一般作用于商品)
 *
 * @author runnable@sina.cn
 */
@Getter
@Setter
@TableName("attribute")
public class AttributeEntity {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(hidden = true)
    private Long id;

    @ApiModelProperty("规格名称")
    private String attributeName;

    @ApiModelProperty("是否允许自定义输入规格属性")
    private Boolean inputFlag;

    @ApiModelProperty(value = "规格属性列表")
    private String attributeList;

    @ApiModelProperty(value = "是否启用规格")
    private Boolean enableFlag;

    @ApiModelProperty(value = "是否删除", hidden = true)
    private Boolean deleteFlag;

    @ApiModelProperty(value = "创建人", hidden = true)
    private Long createId;

    @ApiModelProperty(value = "创建时间", hidden = true)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人", hidden = true)
    private Long updateId;

    @ApiModelProperty(value = "更新时间", hidden = true)
    private LocalDateTime updateTime;
}
